package org.test.connectDB;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import org.junit.Test;

public class ConnectSQLSERVER {

	
	@Test
	public void testSqlserver2005() throws SQLException, ClassNotFoundException{
		
		  Class.forName("net.sourceforge.jtds.jdbc.Driver");
	        Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://localhost:1433/hgdb1","sa","123456");      
	        Statement statement = con.createStatement();
//		   ResultSet rs = statement.executeQuery("");
	}
	
	
}
